﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SanNguoiTimViec.aspx.cs" Inherits="web_pages_SanNguoiTimViec" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Sàn Giao Dịch Việc Làm</title>
    <link href="../../web/css/redmond/ui.all.css" rel="stylesheet" type="text/css" />
    <link href="../css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <link href="../css/San.css" type="text/css" rel="stylesheet" />
    
    <script language="javascript" src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script language="javascript" src="../js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
     <script language="javascript" type="text/javascript" >
                $(function(){       		
			        $('#dialog_Load').dialog({
					        autoOpen: false,
					        width: 700,
					        title: 'Thông tin:',
					        buttons: {
						        "Ok": function() { 
						            $(this).dialog("close"); 
						        }
					        }
		            });		        				
			    });
			    function viewUngVien(id){
			        $("#dialog_Load").load("ajax_san_chitiet_ntv.aspx?id="+id,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }

			     function viewTuyenDung(id){
			        $("#dialog_Load").load("ajax_san_chitiet_tuyendung.aspx?id="+id,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			    function NopHoSo(san,ntv,vlt){
			        $("#dialog_Load").load("ajax_san_nophoso.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			    function LuuHoSo(san,ntv,vlt){
			        $("#dialog_Load").load("ajax_san_luuhoso.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			     function MoiUngVien(san,ntv,ntd){
			       // alert("ajax_san_goiloimoi.aspx?masan="+san+"&mantv="+ntv+"&mantd="+ntd);
			        $("#dialog_Load").load("ajax_san_goiloimoi.aspx?masan="+san+"&mantv="+ntv+"&mantd="+ntd,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			    function MoiUngVien_S1(san,ntv,ntd){
			       // alert("ajax_san_goiloimoi.aspx?masan="+san+"&mantv="+ntv+"&mantd="+ntd);
			        $("#dialog_Load").load("ajax_san_ntd_moi.aspx?masan="+san+"&mantv="+ntv+"&mantd="+ntd,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			    function LuuUngVien(san,ntv,ntd){
			       // alert("ajax_san_luuhoso.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+ntd);
			        $("#dialog_Load").load("ajax_san_luu_ungvien.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+ntd,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			    function XoaLuuHoSo(san,ntv,vlt){
			    //alert("ajax_san_ntv_xoa_luu.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt);
			        $("#dialog_Load").load("ajax_san_ntv_xoa_luu.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
			    }
			    function XoaHoSoNop(san,ntv,vlt){
			   // alert("ajax_san_xoa_hoso_nop.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt);
			        
			        if(confirm("Sẽ xóa Mục Này?")){
			    
			        $("#dialog_Load").load("ajax_san_xoa_hoso_nop.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
                                    }
			    }
			    function ChapNhan(san,ntv,vlt){
			    //alert("ajax_san_chapnhan_hoso.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt);
			        
			        if(confirm("Đồng ý thực hiện phỏng vấn cho cho công việc này?")){
			    
			        $("#dialog_Load").load("ajax_san_chapnhan_hoso.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
                                    }
			    }
			    function KetQuaPV(san,ntv,vlt,ntd){
			   
			   
			  //  alert("ajax_san_ntv_ket_qua_pv.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt+"&mantd="+ntd);
			        
			      //  if(confirm("Đồng ý thực hiện phỏng vấn cho cho công việc này?")){
			        
			        $("#dialog_Load").load("ajax_san_ntv_ket_qua_pv.aspx?masan="+san+"&mantv="+ntv+"&mavlt="+vlt+"&mantd="+ntd,
                             function(){
                                  $('#dialog_Load').dialog('open');
                                    } );
                              
			    }
			     
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
                <div id="top_banner" class="ui-accordion-header ui-state-default ui-corner-all"> 
                    <div class="banner_title">
                      
                       <span style="color:Black;font-weight:normal"> <%=dtt_san.Rows[0]["ten_trung_tam"] %></span><br />
                       <%=dtt_san.Rows[0]["ten_san"] %>  (<%=tensan %>) <br />
                       <div style="clear:both;height:10px;"></div>
                       <a href="javascript:void(0);" onclick="$('#div_tuyendung').show();$('#div_ungvien').hide();" class="ui-corner-all top_block" style="height: 34px; float: left; width: 198px;">
                        <img src="../images/icons/067-search_next.png" width="24px" style="border: 0px; vertical-align: middle" />
                        Việc Tìm Người (<%=soVLT %>)</a> <a href="javascript:void(0);" onclick="$('#div_tuyendung').hide();$('#div_ungvien').show();" class="ui-corner-all top_block" style="height: 34px;
                            float: left; width: 194px;">
                            <img src="../images/icons/find.png" width="24px" style="border: 0px; vertical-align: middle" />
                            Người Tìm Việc (<%=soNTV %>)</a>
                     </div>
                      <div class="ui-corner-all" style="margin:10px;">
                     <a href="SanDefault.aspx?sid=<%=dtt_san.Rows[0]["ma_san"] %>"  class="ui-corner-all top_block" > <img src="../images/icons/Chart.png" width="48px" style="border:0px;" /> <br /> Thông tin sàn </a>
                     <a href="SanExit.aspx?sid=<%=dtt_san.Rows[0]["ma_san"] %> "  class="ui-corner-all top_block" > <img src="../images/exit.png" width="48px" style="border:0px;" /><br /> Thoát </a>
                     <a href="javascript:window.location.reload()"   class="ui-corner-all top_block" > <img src="../images/icons/reload-alt.png" width="48px" style="border:0px;" /> <br />Tải Lại </a>
                     </div>
                </div>
                <div style="clear:both;height:22px;font-family:Tahoma; font-size:11px">
                    <marquee BEHAVIOR=Left  >
                    <%=dtt_san.Rows[0]["mo_ta"] %> 
                    </marquee>
                </div>
                <div id="main" class="ui-accordion ui-accordion-header ui-helper-reset ui-state-active ui-corner-top">
                  
                  <table width="100%">
                  <tr>
                    <td>
                    <div id="left"  class="ui-helper-reset" style="float:left;width:100%;">
                         <div id="div_tuyendung" >
                                    <div class="ui-corner-all ui-widget ui-widget-content" style="margin: 2px">
                                        <table width="100%">
                                            <tr>
                                                <td width="25%">
                                                    <asp:DropDownList ID="cbb_dia_phuong" Width="100%" runat="server">
                                                        <asp:ListItem> Tất cả các địa phương </asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                                <td width="30%">
                                                    <asp:DropDownList ID="cbb_nganh" Width="100%" runat="server">
                                                        <asp:ListItem> Tất cả các ngành </asp:ListItem>
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="TextBox1" Width="100%" runat="server"></asp:TextBox>
                                                </td>
                                                <td style="width: 50px;">
                                                    <input type="button" value="Xem" class="ui-state-default ui-corner-all" onclick=" $('#bangketqua').load('ajax_san_nguoi_tim_viec.aspx?sid=<%=masan %>&tpid='+$('#cbb_dia_phuong :selected').val()+'&nganhid='+$('#cbb_nganh :selected').val() );" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="ui-corner-all ui-widget ui-widget-content" style="margin: 2px">
                                        <table width="100%">
                                            <tr class="ui-widget-header ui-corner-all">
                                                <th style="width: 70px">
                                                    Mã Số</th>
                                                <th style="width: 200px">
                                                    Vị trí
                                                </th>
                                                <th>
                                                    Mô tả</th>
                                                <th style="width: 200px">
                                                    Doanh Nghiệp</th>
                                            </tr>
                                        </table>
                                        <div id="bangketqua">
                                            Đang tải....
                                        </div>
                                    </div>
                                </div>
                                
                                <div id="div_ungvien" style="display:none" >
                                    <div class="ui-corner-all ui-widget ui-widget-content" style="margin: 2px">
                                        <table width="100%">
                                            <tr>
                                                <td width="25%">
                                                    <asp:DropDownList ID="cbb_diaphuong_ntv" Width="100%" runat="server">
                                                     
                                                    </asp:DropDownList>
                                                </td>
                                                <td width="30%">
                                                    <asp:DropDownList ID="cbb_nganh_ntv" Width="100%" runat="server">
                                                       
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="TextBox2" Width="100%" runat="server"></asp:TextBox>
                                                </td>
                                                <td style="width: 50px;">
                                                    <input type="button" value="Xem" class="ui-state-default ui-corner-all" onclick=" $('#bangketqua_ntv').load('ajax_san_nhatuyendung.aspx?sid=<%=masan %>&tpid='+$('#cbb_diaphuong_ntv :selected').val()+'&chucdanhid='+$('#cbb_nganh_ntv :selected').val() );" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="ui-corner-all ui-widget ui-widget-content" style="margin: 2px">
                                        <table width="100%">
                                            <tr class="ui-widget-header ui-corner-all">
                                                <th style="width: 70px">
                                                    Mã Số</th>
                                                <th style="width: 200px">
                                                    Chức Danh Mong Muốn
                                                </th>
                                                <th>
                                                    Mô tả</th>
                                                <th style="width: 200px">
                                                    Tên Ứng Viên</th>
                                            </tr>
                                        </table>
                                        <div id="bangketqua_ntv">
                                            Đang tải....
                                        </div>
                                    </div>
                                </div>  </div>
                    </td>
                    <td style="width:200px;vertical-align:text-top">
                    <div class="ui-corner-all ui-widget ui-widget-content"  style="margin:2px;padding:2px">
                        
                         <div  class="ui-state-default ui-corner-all " style="padding:2px;">
                            Thống Kê Sàn
                        </div>
                       <div style="padding: 5px;" id="thongtin">
                            <table>
                                <tr>
                                <td> Số Nhà Tuyển Dụng</td><td> 0</td>
                                   </tr>
                                   <tr>
                                <td> Số Việc Làm Trống</td><td> 0</td>
                                   </tr>
                                   <tr>
                                <td> Số Ứng Viên </td><td> 0</td>
                                   </tr>
                                   <tr>
                                <td> Ứng Viên Được Mời</td><td> 0</td>
                                   </tr>
                            </table>
               
                        </div>
                        </div>
                    <div class="ui-corner-all ui-widget ui-widget-content"  style="margin:2px;padding:2px">
                        
                         <div  class="ui-state-default ui-corner-all " style="padding:2px;">
                            Chức Năng
                        </div>
                       <div style="padding: 5px;" id="Div1">
                            <table>
                                <tr>
                                <td><a href="SanNguoiTimViec.aspx?sid=<%=dtt_san.Rows[0]["ma_san"] %>"> Tra Cứu Thông tin </a></td><td></td>
                                   </tr>
                                <tr>
                                <td><a href="javascript:void(0);"  onclick="  $('#div_ungvien').hide(); $('#div_tuyendung').show(); $('#bangketqua').load('ajax_san_ntv_ds_da_nop.aspx?sid=<%=masan %>');"> Danh Sách Đã Nộp </a></td><td> <%=soDaNop %></td>
                                   </tr>
                                <tr>
                                <td><a href="javascript:void(0);"  onclick="  $('#div_ungvien').hide(); $('#div_tuyendung').show(); $('#bangketqua').load('ajax_san_ntv_ds_duoc_moi.aspx?sid=<%=masan %>');"> Danh Sách Được Mời </a></td><td> <%=soDuocMoi %></td>
                                   </tr>
                                <tr>
                                <td><a href="javascript:void(0);"  onclick="  $('#div_ungvien').hide(); $('#div_tuyendung').show(); $('#bangketqua').load('ajax_san_ntv_ds_da_luu.aspx?sid=<%=masan %>');"> Danh Sách Đã Lưu</a></td><td> <%=soDaLuu %></td>
                                   </tr>
                                   <tr>
                                <td><a href="javascript:void(0);"  onclick="  $('#div_ungvien').hide(); $('#div_tuyendung').show(); $('#bangketqua').load('ajax_san_ntv_ds_cho_pv.aspx?sid=<%=masan %>');"> Danh Sách chờ Phỏng Vấn</a></td><td> <%=soGoiPV %></td>
                                   </tr>
                                   
                            </table>
               
                        </div>
                        </div>
                    </td>
                  </tr>
                  </table>
                   
                    
                    
                </div>
                
                <div id="footer" class=" ui-state-default ui-corner-all">
                 <b>Copyright © 2010 TRUNG TÂM GIỚI THIỆU VIỆC LÀM BÌNH DƯƠNG </b> 
                </div>
    </div>
    </form>
     <div id="dialog_Load" title="Điều khoản sử dụng" class="ui-dialog-content ui-widget-content"
        style="height: auto; max-height:500px; min-height: 61px; width: auto;">
    </div>
    <script language="javascript" type="text/javascript">
        var ma_san = <%=masan %>;
        $("#bangketqua").load("ajax_san_nguoi_tim_viec.aspx?sid=<%=masan %>&tpid=&nganhid=");
        $("#bangketqua_ntv").load("ajax_san_nhatuyendung.aspx?sid=<%=masan %>&tpid=&chucdanhid=");
		 </script>
     <script language="javascript" src="../js/handle.js" type="text/javascript"></script>
</body>
</html>
